<template>
  <div>
    <van-overlay :show="ImgShow2">
       <div class="wrapper" @click.stop>
       <div class="block" @click=" IsShow">
        <p>7日登录简历<span>X</span></p>
        <p>
          <a href=""><span>第1天</span></a>
          <a href=""><span>第2天</span></a>
          <a href=""><span>第3天</span></a>
          <a href=""><span>第4天</span></a>
        </p>
        <p>
          <a href=""><span>第5天</span></a>
          <a href=""><span>第6天</span></a>
          <a href=""><span>第7天</span></a>
        </p>
        <p><a href="">领取</a></p>
       </div>
       </div>
   </van-overlay>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
 data() {
    return {
      IsDiaLog:true
    }
  },
  computed:{
    ...mapState("yang",['ImgShow','ImgShow2'])
  },
  methods: {
    ...mapMutations('yang',['Is_Show']),
    IsShow(){
      this.Is_Show()
    },
  },
}
</script>

<style lang="scss" scoped>
/* scoped 让样式只在当前组件生效  ！important(父子元素存在同样类名时用)*/
*{
  margin: 0;
  padding: 0;
}
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .block {
    width: 5.5rem;
    height: 5.8rem;
    background-color: #EFEFEF;
    text-align: center;
    border-radius: .4rem;
    z-index: 66;
  }
  .ImgShow2{
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 250%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 0;
  }
  h1:nth-of-type(1){
  margin-top:5rem;

}
p{
  height: 1.6rem;
  font-size: .25rem;
  display: flex;
  justify-content: space-evenly;
  border-radius: 0.25rem;
  margin-top: .1rem;
  z-index: 66;
  a{
      border-radius: .2rem;
      width: 1rem;
      border-radius: .25rem;
      display: block;
      background: #CECECE;
      z-index: -1;
      span{
        color: #571D10;
        background: #9A9A9A;
        margin-top: 0.5rem;
        display: block;
        height: 38%;
        width: 100%;
        border-radius: .25rem .25rem 0 0;
        position: relative; 
        top: -0.48rem;
        line-height: .6rem;
      }
      }
  &:nth-of-type(1){
    font-size: .42rem;
    letter-spacing: .1rem;
    height: .8rem;
    width: 80%;
    text-align: center;
    line-height: .8rem;
    background: #9A9A9A;
    position: relative;
    top: -.35rem;
    left: .5rem;
    display: block;
    span{
      width: .65rem;
      height: .65rem;
      border-radius: 22rem;
      background: white;
      position: absolute;
      right: -0.6rem;
      top: .05rem;
      line-height: .65rem;
      color: gray;
      text-indent: .1rem;
    }
  }
  &:nth-of-type(3){
    a{
      &:nth-last-child(1){
        flex-basis:2.26rem
      }
    }
    
  }
  &:nth-last-child(1){
    a{
      color: black;
      width: 2rem;
      height: 1rem;
      font-size:.5rem;
      line-height: 1rem;
    }
  }
  
}
</style>